#!/usr/bin/env bash

mkdir -p /data/mysql/data /data/mysql/logs /data/mysql/conf

docker build -t alex/docker_mysql .


# 启动
#docker run -d -p 13306:3306  alex/docker_mysql
#

#docker run  -p 13306:3306 -v /data/mysql/data:/var/lib/mysql  -d alex/docker_mysql:latest

#docker run -d  -v /opt/mysql/data:/var/lib/mysql alex/docker_mysql

#


# 交互
#docker exec -it 9db491b1d760 /bin/bash
#mysql -u AlexanderLuo -p